import Vue from 'vue'
import App from './App'
import router from './router'
import http from './utils/require'
import timeformater from './utils/timeformater'
import fn from './utils/projectBase'
import config from './config'

import uView from "uview-ui";
Vue.use(uView);

Vue.prototype.$http=http
Vue.prototype.$Router=router
Vue.prototype.$Route=router.route
Vue.prototype.$Store={
	baseUrl:config.baseUrl,
	devInfo:uni.getSystemInfoSync(),
	userInfo:uni.getStorageSync('userInfo')||{}
}
// console.log(Vue);
Vue.prototype.$onLaunched = new Promise(resolve => {
    Vue.prototype.$isResolve = resolve
})
Vue.prototype.$Time = timeformater
Vue.prototype.$fn = fn
Vue.prototype.$error = function(option){
	console.log('请求出错');
	return false
}
console.log(Vue.prototype);



Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
